package com.chen.qq;

import javax.swing.ImageIcon;

/**
 * @author 5
 * 
 */
public class ImageElement {

	private ImageIcon icon;

	private String text;

	public ImageElement() {
		this(null);
	}

	public ImageElement(ImageIcon icon) {
		this.icon = icon;
	}

	public ImageIcon getIcon() {
		return icon;
	}

	public void setIcon(ImageIcon icon) {
		this.icon = icon;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	@Override
	public String toString() {
		return text;
	}

}
